<template lang="pug">
  li
    MenuItems(
      v-for="(button,index) in buttonList"
      v-bind="button"
      :key="button.name")
</template>

<script>
/**
 * @name ContextMenu 表格右击操作菜单
 * @author 杜俊炎
 * @description 右击菜单按钮
 */
import MenuItems from './MenuItem'
export default {
  name: 'contextMenu',
  components: {
    MenuItems
  },
  props: {
    buttonList: {
      type: Array,
      default: () => []
    } // 按钮组参数配置
  }
}
</script>
<style lang="sass" scoped>
.button-wrap
  .btn
    &:not(:last-child)
      margin-right: 8px
</style>
